package com.qqt.csr.common.acl.aics.resp;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.qqt.csr.common.utils.JsonUtil;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

@Getter
@Setter
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@ToString
@JsonIgnoreProperties(ignoreUnknown = true)
public class ChannelInfoDTO implements Serializable {
    @Serial
    private static final long serialVersionUID = 45852683952435406L;

    /**
     * 渠道id
     */
    private String id;
    /**
     * 渠道名称
     */
    private String name;

    /**
     * 绑定路由id
     */
    private Integer routeId;

    /**
     * 客服对外形象： 1：技能组形象  2：客服形象
     */
    private Integer appearanceType;

    @JSONField(serialize = false, deserialize = false)
    public boolean isSkillSetAppearanceType() {
        return appearanceType != null && appearanceType.equals(1);
    }

    @JSONField(serialize = false, deserialize = false)
    public boolean isCsAppearanceType() {
        return appearanceType != null && appearanceType.equals(2);
    }
}
